package com.aliyun.oss.pojo.DTO;

import org.springframework.web.multipart.MultipartFile;

import java.math.BigDecimal;
import java.util.Arrays;

public class AddFoodDTO {
    private Integer id;
    private String name;
    private Integer categoryId;
    private BigDecimal price;
    private String description;
    private String flavorName;
    private String[] flavorValue;
    private MultipartFile imageUrl;

    @Override
    public String toString() {
        return "AddFoodDTO{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", categoryId=" + categoryId +
                ", price=" + price +
                ", description='" + description + '\'' +
                ", flavorName='" + flavorName + '\'' +
                ", flavorValue=" + Arrays.toString(flavorValue) +
                ", imageUrl=" + imageUrl +
                '}';
    }

    public AddFoodDTO() {
    }

    public AddFoodDTO(Integer id, String name, Integer categoryId, BigDecimal price, String description, String flavorName, String[] flavorValue, MultipartFile imageUrl) {
        this.id = id;
        this.name = name;
        this.categoryId = categoryId;
        this.price = price;
        this.description = description;
        this.flavorName = flavorName;
        this.flavorValue = flavorValue;
        this.imageUrl = imageUrl;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getCategoryId() {
        return categoryId;
    }

    public void setCategoryId(Integer categoryId) {
        this.categoryId = categoryId;
    }

    public BigDecimal getPrice() {
        return price;
    }

    public void setPrice(BigDecimal price) {
        this.price = price;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public String getFlavorName() {
        return flavorName;
    }

    public void setFlavorName(String flavorName) {
        this.flavorName = flavorName;
    }

    public String[] getFlavorValue() {
        return flavorValue;
    }

    public void setFlavorValue(String[] flavorValue) {
        this.flavorValue = flavorValue;
    }

    public MultipartFile getImageUrl() {
        return imageUrl;
    }

    public void setImageUrl(MultipartFile imageUrl) {
        this.imageUrl = imageUrl;
    }
}
